package org.lc.stk.model.question.impl.choice.sigleChoice;

import org.hibernate.annotations.Comment;
import org.lc.stk.model.question.Question;
import org.lc.stk.model.question.impl.choice.ChoiceQuestionStem;

import jakarta.persistence.Entity;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;

/**
 * 单项选择题
 */
@Entity
@Table(name = "stk_single_choice_question")
@Comment("单项选择题")
public class SingleChoiceQuestion extends Question {

    @OneToOne
    @Comment("题干")
    private ChoiceQuestionStem stem;

    @OneToOne
    @Comment("答案")
    private SingleChoiceAnswer answer;

    public ChoiceQuestionStem getStem() {
        return stem;
    }

    public void setStem(ChoiceQuestionStem stem) {
        this.stem = stem;
    }

    public SingleChoiceAnswer getAnswer() {
        return answer;
    }

    public void setAnswer(SingleChoiceAnswer answer) {
        this.answer = answer;
    }

}
